package com.apinji.common.data;

/**
 * Created by 轩辕夏夏 on 2017/7/3.
 */
public enum PayStatusEnum {
    ORDER_CREATE(1, "交易流水已创建"),

    BANK_DEAL(2, "已受理(并不代表成功)"),

    CALLBACK_ONLY(3, "已回调，但不代表成功"),

    CALLBACK_VALIDATE_FAIL(4, "已回调，但签名验证失败"),

    CALLBACK_VALIDATE_SUCCESS(5, "已回调，且签名验证成功"),

    SUCCESS_DEAL(6, "成功"),

    FAILD_DEAL(7, "失败"),

    CLOSED_DEAL(8, "已关闭"),

    ERROR_FEE(9, "交易金额不正确");

    ;

    private int status;
    private String name;

    PayStatusEnum(int status, String name){
        this.status = status;
        this.name = name;
    }

    public int getStatus() {
        return status;
    }

    public String getName() {
        return name;
    }
}
